package cn.nsu.douban.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.nsu.douban.dao.dao.IActorDao;
import cn.nsu.douban.entity.ActorInfo;
import cn.nsu.douban.entity.MovieInfo;
import cn.nsu.douban.service.IActorService;

@Service
@Transactional
public class IActorServiceImpl  implements IActorService{

	 @Resource
	 private IActorDao iActorDao;
	public void setiActorDao(IActorDao iActorDao) {
		this.iActorDao = iActorDao;
	}


	@Override
	public ActorInfo getActorByMovieId(MovieInfo movieInfo) {

		return iActorDao.getActorByMovieInfo(movieInfo);
	}


	@Override
	public List<ActorInfo> getAll() {
           
		
		return iActorDao.getAll();
	}

}
